<?php
/**
 * Created by JetBrains PhpStorm.
 * User: thinhhung
 * Date: 6/26/12
 * Time: 10:58 AM
 * To change this template use File | Settings | File Templates.
 */
?>
<div class="head_title"><h1 align="center">Thống Kê Kết Quả Kinh Doanh</h1> </div>
<?php
echo "<div align='left' class='thongke'>";
echo $this->Form->create('ThongKe', array('action' => 'ketquakinhdoanh_form'));
//echo $this->Form->input('id', array('type' => 'hidden', 'style' => 'width:200px'));
echo $this->Form->input('NGAYTK', array('readonly' => 'readonly', 'label' => 'Từ ngày :','style' => 'width:100px', 'div' => 'date_input'));
echo $this->Form->input('NGAYKT', array('readonly' => 'readonly', 'label' => 'Đến ngày :','style' => 'width:100px', 'div' => 'date_input'));
echo $this->Form->submit('Chọn', array('name' => 'submit'));
if ($this->data != null){
			$NGAY = $this->data['ThongKe']['NGAYTK']['year'] . "-" . $this->data['ThongKe']['NGAYTK']['month'] . "-" . $this->data['ThongKe']['NGAYTK']['day'];
			$NGAYKT = $this->data['ThongKe']['NGAYKT']['year'] . "-" . $this->data['ThongKe']['NGAYKT']['month'] . "-" . $this->data['ThongKe']['NGAYKT']['day'];
			echo $this->Html->link('Xem doanh thu', array('action' => 'ketquakinhdoanh', $NGAY, $NGAYKT), array('class' => 'notice success'));
		}
echo $this->Form->end();
echo "</div>";
